#--
按钮权限控制
--#
#define auth_btn(id,name,uri,auth,cls,icon)
	#if(!auth || com.yj.auto.helper.AuthHelper::auth(uri, id, session.SESSION_USER))
<a id="#(id)_btn" href="javascript:void(0)" class="btn #(cls)" data-uri="#(uri)"> <i class="#(icon)"></i>&nbsp;&nbsp;#(name)</a>
	#end
#end

#define query_btn()
#@auth_btn("query","查询","",false,"btn-default","fa fa-search text-primary")
#end

#define add_btn(uri,auth)
#@auth_btn("add","新增",uri,auth,"btn-success","fa fa-plus")
#end

#define edit_btn(uri,auth)
#@auth_btn("edit","编辑",uri,auth,"btn-warning","fa fa-edit")
#end

#define del_btn(uri,auth)
#@auth_btn("del","删除",uri,auth,"btn-danger","fa fa-trash")
#end